package run.newbug.pojohw;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private Integer age;
    private String name;
    private String sex;
    private Integer id;

    public User setId(Integer id){
        this.id = id;
        return this;
    }
    public User setAge(Integer age){
        this.age = age;
        return this;
    }

    public User setName(String name){
        this.name = name;
        return this;
    }
    public User setSex(String sex){
        this.sex = sex;
        return this;
    }

}
